<?php

Yii::import('common.models._base.BaseContactAdmin');

class ContactAdmin extends BaseContactAdmin {

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public static function gettrainerMailSubject($userId) {
        $subject = ContactAdmin::model()->findByAttributes(array('from_users_id' => $userId));
        return $subject->subject;
    }

}